package com.union.vehicleassistant.bean;


/**
 * 常用菜单bean
 *
 * @author mz
 * @date-time 2024/12/16 16:19
 */
public class CommonItem {

    private String name;
    private int selectResId;
    private int unSelectResId;
    private MenuType type;
    private String msgNum;
    private boolean select;

    public CommonItem() {
    }

    public CommonItem(String name, MenuType type) {
        this.name = name;
        this.type = type;
    }

    public CommonItem(MenuType type) {
        this.type = type;
        this.name = type.title;
        this.selectResId = type.resId;
    }

    public String getName() {
        return name;
    }

    public CommonItem setName(String name) {
        this.name = name;
        return this;
    }

    public int getSelectResId() {
        return selectResId;
    }

    public CommonItem setSelectResId(int selectResId) {
        this.selectResId = selectResId;
        return this;
    }

    public int getUnSelectResId() {
        return unSelectResId;
    }

    public CommonItem setUnSelectResId(int unSelectResId) {
        this.unSelectResId = unSelectResId;
        return this;
    }

    public MenuType getType() {
        return type;
    }

    public CommonItem setType(MenuType type) {
        this.type = type;
        return this;
    }

    public String getMsgNum() {
        return msgNum;
    }

    public CommonItem setMsgNum(String msgNum) {
        this.msgNum = msgNum;
        return this;
    }

    public boolean isSelect() {
        return select;
    }

    public CommonItem setSelect(boolean select) {
        this.select = select;
        return this;
    }
}
